<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<link href="/css/resource/index.css" rel="stylesheet" />
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

                        <input id="level" name="level" type="hidden">
                        <input id="parenId" name="parenId" type="hidden">
                        <input id="managementResourcesId" name="managementResourcesId" type="hidden">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">章节名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" placeholder="请输入章节名称" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">优先级 ：</label>
                            <div class="col-sm-8">
                                <input id="sort" name="sort" placeholder="请输入优先级" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">视频信息：</label>
                            <div class="col-sm-8">

                                <div class="linkBox">

                                    <div class="resource">
                                        <span class="addElement">添加</span>

                                        <div class="link">
                                            <input id="" name="" placeholder="请输入资源名称" class="form-control title" type="text">

                                            <input placeholder="请输入视频链接" class="form-control video" type="text">
                                            <p class="priority"><input type="text" class="form-control number"></p>
                                            <span class="iconclose remove"><img src="../../../img/close.png"></span>
                                        </div>
                                    </p>

                                </div>

                                <input type="hidden" id="zyNames" name="zyNames">
                                <input type="hidden" id="spUrls" name="spUrls">
                                <input type="hidden" id="zySorts" name="zySorts">

                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">文档：</label>
                            <div class="col-sm-8">
<!--                                <input id="sort" name="sort" placeholder="sort" class="form-control" type="text">-->
                                <div class="listAll"></div>
                                <div class="layui-upload">
                                    <button type="button" class="layui-btn" id="test2">文件上传</button>
                                    <input type="hidden" id="wdUrls" name="wdUrls">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片：</label>

                            <div class="col-sm-8">
                                <div class="listImg"></div>
                                <button type="button" class="layui-btn" id="test1">上传图片</button>

                                <input id="tpUrls" name="tpUrls" type="hidden">
                            </div>
                        </div>

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">type ：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <input id="type" name="type" placeholder="请输入类型" class="form-control" type="text">-->
<!--                            </div>-->
<!--                        </div>-->

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">profileId：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <input id="profileId" name="profileId" placeholder="请输入profileId" class="form-control" type="text">-->
<!--                            </div>-->
<!--                        </div>-->

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="button" onclick="save()" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </div>
                    </form>

                    <form class="form-horizontal m-t" id="signupForms">

                        <input id="managementResourcesId" name="managementResourcesId" type="hidden">
                        <input id="type" name="type" value="3" type="hidden">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片名称：</label>
                            <div class="col-sm-8">
                                <input id="zyName" name="zyName" placeholder="请输入章节名称" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">优先级 ：</label>
                            <div class="col-sm-8">
                                <input id="zySort" name="zySort" placeholder="请输入优先级" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">

                            <div class="form-group">
                                <label class="col-sm-3 control-label">图片：</label>

                                <div class="col-sm-8">
                                    <div class="listImg"></div>
                                    <button type="button" class="layui-btn" id="test1">上传图片</button>
                                    <input id="fileUrl" name="fileUrl" type="hidden">
                                </div>
                            </div>

                            <!--                        <div class="form-group">-->
                            <!--                            <label class="col-sm-3 control-label">type ：</label>-->
                            <!--                            <div class="col-sm-8">-->
                            <!--                                <input id="type" name="type" placeholder="请输入类型" class="form-control" type="text">-->
                            <!--                            </div>-->
                            <!--                        </div>-->

                            <!--                        <div class="form-group">-->
                            <!--                            <label class="col-sm-3 control-label">profileId：</label>-->
                            <!--                            <div class="col-sm-8">-->
                            <!--                                <input id="profileId" name="profileId" placeholder="请输入profileId" class="form-control" type="text">-->
                            <!--                            </div>-->
                            <!--                        </div>-->

                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button type="button" onclick="saves()" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/webJs/jzweb/zykResourcesChapters/add.js"></script>

</body>
</html>
